package com.jybd.live.entity;

public class ApiResponse {

    public static enum  STATUS{
        OK(1000,"OK"),
        ERROR(1001,"SERVER ERROR"),
        PARAMS_ERROR(1002,"PARAMS_ERROR");
        int status;
        String desc;

        STATUS(int status, String desc) {
            this.status = status;
            this.desc = desc;
        }
    }

    int status;
    String desc;
    Object data;

    public ApiResponse() {
    }

    public void setStatus(STATUS status) {
        this.status = status.status;
        this.desc = status.desc;
    }

    public ApiResponse(int status, String desc, Object data) {
        this.status = status;
        this.desc = desc;
        this.data = data;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }

    public Object getData() {
        return data;
    }

    public void setData(Object data) {
        this.data = data;
    }
}
